<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <div id="div1">
       id:<input type="text" v-model="user.id"/><br/>
       username:<input type="text" v-model="user.username" /><br/>
       password:<input type="text" v-model="user.password"/><br/>
       nick:<input type="text" v-model="user.nick"/><br/>
   </div>
<script src="js/vue.js"></script>
<script src="js/axios.min.js"></script>
<script>
    let vue = new Vue({
        el:"#div1",
        data:{
            user:{}
        },
        methods:{

        },
        mounted:function () {
            alert("1111111111")
            axios.get("/user/findUser?id=2").then(function (res) {
                alert(res.data)
                vue.user = res.data;
            })
        }
    })
</script>
</body>
</html>







